import TypeIndex from '@/components/type/index.vue'

// 子路由列表
const children = [//子路由
    {
        name: 'TypeIndex',
        path: 'index',
        component:TypeIndex,
    }
]

// 1级路由的组件
const layout = {
    template: `<router-view></router-view>`
}

// 创建路由对象
export default {
    name: 'type',
    path: '/type', //一级路由
    component: layout, //组件
    children: children
}